import bsinRequest from '../utils/bsinRequest';
let workflowAdminPath = process.env.contextPath_workflowAdmin;

// 获取待办任务列表
export const getTasksByUser = (params: object) => {
  return bsinRequest(workflowAdminPath + '/processInstance/getTasksByUser', {
    serviceName: 'BsinAdminProcessInstanceTaskService',
    methodName: 'getTasksByUser',
    bizParams: {
      ...params,
    },
  });
};
